package com.jsj.domain;

import org.springframework.stereotype.Component;

@Component
public class Student {
    private String userName;
    private String nickName;
    private String email;

    public Student() {
    }

    public Student(String userName, String nickName, String email) {
        this.userName = userName;
        this.nickName = nickName;
        this.email = email;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "Student{" +
                "userName='" + userName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
